import server from "../utils/request.js";
export function findSysTeam(role,doctorId){
    return server({
        url:`/sysDoctorTeam/${role}/${doctorId}`,
        method:'GET'
    })
}
export function updateSysDoctorTeam(doctorId,teamId){
    return server({
        url:`/sysDoctorTeam/${doctorId}/${teamId}`,
        method:'PUT'
    })
}
export function deleteSysTeam(id){
    return server({
        url:`/sysTeam/deleteSysTeam/${id}`,
        method:'PUT'
    })
}
export function findById(id){
    return server({
        url:`/sysTeam/${id}`,
        method:'GET'
    })
}
export function updateSysTeam(params){
    return server({
        url:'/sysTeam',
        method:'PUT',
        params
    })
}
export function addSysTeam(data){
    return server({
        url:'/sysTeam',
        method:'POST',
        data
    })
}
export function findAllTeam(params){
    return server({
        url:'/sysTeam',
        method:'GET',
         params
    })
}